@(message: String) 
@js_css={
<script type="text/javascript">
	$(document).ready(function(){
		@if(message==null || message==""){
		}else{
			prompt("@message");
		}
		$("#login-btn").click(function(){
			var username = $("#username").val();
			var password = $("#password").val();
			if(username == null || username == ""){
				prompt("用户名不能为空");
				return false;
			}
			if(password == null || password == ""){
				prompt("密码不能为空");
				return false;
			}
		});
	});
</script>
} 
@main("登陆",js_css) {

<div class="col-xs-12">
	<div class="col-xs-12">
		<br><br>
	</div>
	
	<div class="col-xs-4 col-md-4  col-xs-offset-4 well bs-component">
		<form id="login-form" class="form-horizontal" method="post" action="/login">
			<fieldset>
				<legend>用户登录</legend>
				<div class="col-xs-12">
					<div id="prompt" class="alert alert-dismissable alert-warning hide">
			  			<p><b></b></p>
					</div>
				</div>
				<div class="form-group">
					<label for="username" class="col-xs-2 control-label">用户名</label>

					<div class="col-xs-10">
						<input class="form-control" id="username" name="username" placeholder="用户名" type="text">
					</div>
				</div>

				<div class="form-group">
					<label for="password" class="col-xs-2 control-label">密码</label>

					<div class="col-xs-10">
						<input class="form-control" id="password" name="password" placeholder="密码" type="password">
					</div>
				</div>
				<div class="form-group">
					<div class="col-xs-6 col-xs-offset-3">
						<button type="submit" id="login-btn" class="btn btn-lg btn-primary">登陆</button>
						<a href="/register" class="btn btn-lg btn-warning">免费注册</a>
					</div>
				</div>
			</fieldset>
		</form>
	</div>
</div>

}
